package com.nycreativity.elecreativity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.nycreativity.elecreativity.entity.dto.UserRoleDTO
import com.nycreativity.elecreativity.entity.po.UserRole
import org.apache.ibatis.annotations.Param

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ttxxi
 * @since 2021-11-04
 */
interface UserRoleMapper : BaseMapper<UserRole>{
    /**
     * @description 根据用户id查询角色
     * @param userId : 用户id
     * @author ttxxi
     * @create 2021/10/11
     * @return : java.util.List<com.sicau.sso_center.entity.po.Role>
    </com.sicau.sso_center.entity.po.Role> */
    fun selectUserRoleDTOByUserId(@Param("userId") userId: Long?): List<UserRoleDTO>
}
